<%-- 
    Document   : addUser
    Created on : Nov 19, 2012, 10:13:17 PM
    Author     : mruiz
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%
    String username = request.getParameter("user");
    List<String> users = (List<String>) session.getAttribute("users");

    if (null == users) {
        users = new ArrayList<String>();
    }
    users.add(username);
    session.setAttribute("users", users);
    response.sendRedirect("index.jsp");
%>
